package OldFilesHemanth;

import java.io.*;
import java.net.*;
import java.util.*;

class Park {

 public Car_Riders[] rider;
 public Car_Riders[] car;

    public Park(int Num1,int Num2)
    {
      int i;

      rider = new Car_Riders[Num1];
      car = new Car_Riders[Num2];
      
      Ride d = new Ride(Num1,Num2);
      for (i = 0; i < Num1; i++)
        {
           rider[i] = new Car_Riders("rider", d, i);
        }
      for (i = 0; i < Num2; i++)
        {
           car[i] = new Car_Riders("car", d, i);
        }
    }

 public static void main(String args[])
    {
       int num1=7,num2=3;
	//read num1 and num2 from command line;
       
       Scanner in = new Scanner(System.in);
       
       System.out.println("Enter the value for num1(No. of riders) should be >=2");
       num1 = in.nextInt();
       System.out.println("Enter the value for num2(No. of cars)should be >=1");
       num2=in.nextInt();
       in.close();
       //System.out.println("Values of num1 and num2 are "+num1 + " "+num2);


	Park a = new Park(num1, num2);

	}
}
